package com.woniuxy.classteacher.mapper;

import com.woniuxy.commons.entity.wyh.TeacherInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Auther: 牟强
 * @Date: 2020/7/23/023 12:08
 * @Description: 教师mapper
 */
@Repository
public interface TeacherMapper {
    /**
     * @Author: 牟强
     * @Date: 2020/7/23/023 12:09
     * @Description: 通过教师id查询学校id
     * @Param: [TeacherId]
     * @return: java.lang.Integer
     */
    public Integer findTeacherSchoolIdByTeacherId(int teacherId);

    /**
     * @Author: 牟强
     * @Date: 2020/7/27/027 11:28
     * @Description: 根据教师id获取教师的姓名
     * @Param: [teacherId]
     * @return: java.lang.String
     */
    public String findTeacherNameByTeacherId(int teacherId);

    /**
     * @Author: 牟强
     * @Date: 2020/8/1/001 10:13
     * @Description: 通过教师id获取教师
     * @Param: [teacherId]
     * @return: com.woniuxy.commons.entity.wyh.TeacherInfo
     */
    public TeacherInfo findTeacherByTId(int tcId);

    /**
     * @Author: 牟强
     * @Date: 2020/8/1/001 15:29
     * @Description: 通过教师id修改教师密码
     * @Param: [tId, Pwd]
     * @return: void
     */
    public void updateTeacherPwdByTId(@Param("tId") int tId, @Param("pwd") String Pwd);
}
